﻿using System;
using System.Collections.Generic;
using System.Linq;
using DCS.Business.Model;
using DCS.DataProvider;

namespace DCS.Business.Manager
{
    public class MonitorManager
    {
        private IDataProvider provider;
        static log4net.ILog Logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        public MonitorManager(IDataProvider p)
        {
            this.provider = p;
        }

        public List<DCSFileSummary> GetDCSFileSummary(bool groupByDate)
        {
            return provider.GetDCSFileSummary(groupByDate);
        }

        public Dictionary<string, FileStatus> GetRecentFileStatus(int recentDays = 365, string messageType = "ALL")
        {
            return provider.GetRecentFileStatus(recentDays, messageType);
        }
    }
}
